package com.ruicar.afs.cloud.account.common.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.account.common.dto.AccountVoucherInfoDto;
import com.ruicar.afs.cloud.account.common.entity.VoucherFlowInfo;
import com.ruicar.afs.cloud.common.modules.dto.mq.voucher.VoucherFlowInfoDto;
import com.ruicar.afs.cloud.common.vo.VoucherFlowInfoVo;
import com.ruicar.afs.cloud.voucher.dto.VoucherSendInfoDto;

import java.util.Date;
import java.util.List;

/**
 * @author: Lee
 * @date 2020-05-30 04:58:05
 * @description
 */
public interface VoucherFlowInfoService extends IService<VoucherFlowInfo> {

    boolean checkAndSaveFlow(VoucherFlowInfoDto voucherFlowInfoDto);

    JSONObject send(List<VoucherSendInfoDto> list);

    void handleFlowingStatus(List<AccountVoucherInfoDto> dtos,VoucherFlowInfoVo voucherFlowInfo);

    void handleFlowingErrMsg(Long id,String errMsg);

    Boolean resetFlowStatus(long parseLong);

    Boolean resetItemStatus(long parseLong);
}
